package com.tanhua.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.mysql.Analysis;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AnalysisMapper extends BaseMapper<Analysis> {

    /**
     * 概要查询
     *
     * @param column
     * @param ltDate
     * @param gtDate
     * @return
     */
    @Select("select sum(${column}) from tb_analysis where record_date between #{gtDate} and #{ltDate}")
    Long sumAnalysisData(@Param("column") String column, @Param("gtDate") String gtDate, @Param("ltDate") String ltDate);
}
